package com.hq.service.impl;

import com.hq.dao.ProblemDao;
import com.hq.pojo.Problem;
import com.hq.service.ProblemService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ProblemImpl implements ProblemService {


    @Resource
    ProblemDao problemDao;


    @Override
    public int ins_pro(Problem problem) throws Exception {
        return problemDao.ins_pro(problem);
    }

    @Override
    public int del_pro(Integer problemid) throws Exception {
        return problemDao.del_pro(problemid);
    }

    @Override
    public int upd_pro(Problem problem) throws Exception {
        return problemDao.upd_pro(problem);
    }

    @Override
    public Problem sel_pro(Problem problem) throws Exception {
        return problemDao.sel_pro(problem);
    }

    @Override
    public List<Problem> cus_list_pro(Integer customerid) throws Exception {
        return problemDao.cus_list_pro(customerid);
    }

    @Override
    public List<Problem> list_pro() throws Exception {
        return problemDao.list_pro();
    }

    @Override
    public int sel_quantity_pro() throws Exception {
        return problemDao.sel_quantity_pro();
    }
}
